﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Control_Evaluacion
{
    public partial class frm_presenta : Form
    {
        public frm_presenta()
        {
            InitializeComponent();
        }

        private void frm_presenta_Load(object sender, EventArgs e)
        {
            try
            {
                axShockwaveFlash1.Movie = Application.StartupPath + "\\ainnbiometrix_inicio.swf";
                axShockwaveFlash1.Play();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                Application.Exit();
            }
        }
        int min_ = 0;
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (min_ < 2)
                min_++;
            else
            {
                if (min_ < 3)
                {
                    this.Opacity = this.Opacity - 0.40;
                    min_++;
                }
                else
                {
                    timer1.Enabled = false;
                    if (min_ == 3)
                    {
                        frmIngreso ingg = new frmIngreso();
                        ingg.Show();
                        this.Hide();
                    }
                }
            }
        }

        private void frm_presenta_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }

        private void axShockwaveFlash1_Enter(object sender, EventArgs e)
        {

        }
    }
}
